var oper = getQueryString('oper')
var instanceId = getQueryString('id')
var defId ;

$(function () {
  // getDetail(instanceId)
  bpmInit({
    defId : '',
    flowKey : '',
    instanceId : instanceId,
    readonly: true
  })
})

function getDetail(id) {
  $.operate.post(api + '/scabpm/bpm/instance/getInstanceData',
    {instanceId: id},
    function (res) {

      if (res.isOk){
        //iframe页面src复制
        $('#iframeContent').attr('src', res.data.form.formValue)

        //操作按钮循环显示
        buttonTemp(res.data.buttonList)
        defId = res.data.defId
        configSpecified = res.data.configSpecified
      }else{
        $.modal.closeLoading();
      }
    }, false)
}
